package online.afeibaili.storebackendframework.repository

import online.afeibaili.storebackendframework.model.AccountEntity
import org.springframework.data.jpa.repository.JpaRepository
import org.springframework.stereotype.Repository


/**
 * 账户存储层
 *
 *@author AfeiBaili
 *@version 2025/10/17 16:00
 */

@Repository
interface AccountRepository : JpaRepository<AccountEntity, String> {
    fun removeById(id: String): AccountEntity?
    fun removeByNickname(nickname: String): List<AccountEntity>
    fun findByIdIn(ids: List<String>): List<AccountEntity>
}